﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace RServer
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IRService
    {
        [OperationContract]
        void UploadCSVData(Guid ID, string[] csv);

        [OperationContract]
        string ExecuteR(Guid ID, string scriptName, Dictionary<string, string> arguments);

        [OperationContract]
        string GetHTMLReport(Guid ID);

        [OperationContract]
        void ReportError(string errorInfo);

        [OperationContract]
        string[] GetCharConversionList();

        [OperationContract]
        string GetReportsFolder();

        [OperationContract]
        List<string> GetListOfScripts();

        [OperationContract]
        string GetRScript(string scriptName);

        [OperationContract]
        void SaveRScript(string scriptName, List<string> scriptLines);
    }
}